import requests
import re
url="http://www.ugainian.com/news/l-26-1-0-1.html"
html=requests.get(url).text
print(html)
zwze=r'<div style="width: 100%;height: 10px;background-color: #efefef;"></div>(.+?)<div class="page text-center page_sm" style="margin:60px 0;"><div>'
zw=re.findall(zwze,html,re.S)
print(type(zw))
zw=str(zw)
zebt=r'<div class="forum_title">(.+?)</div>'
title=re.findall(zebt,zw,re.S)
#print(title)
print(type(title))
zelj=r'<a href="(.+?)" target="_blank">'
link=re.findall(zelj,zw,re.S)
print(type(link))
print("http://www.ugainian.com"+str(link))
print(link)
print(str(title)+"/n"+str(link)+"/n")